<?php
function dates_inbetween($date1, $date2){

    $day = 60*60*24;

    $numbdates = ($date2-$date1)/$day + 1;
    if($numbdates>900){
        $numbdates = 900;
    }
    for($i=0;$i<=$numbdates;$i++){
        $unix = $date1+($day*$i);
        $dates[date("dmy",$unix)] = array('done'=>0,'create'=>0,'begun'=>0, 'unix'=>$unix);
    }

    return $dates;
}
function cmp($a,$b){
    return strcmp($a["Task"], $b["Task"]);
}


?>
